package com.dgut.forum.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel("文章")
@Data
public class Article {
    @ApiModelProperty("文章id")
    private Long id;
    @ApiModelProperty("文章所属版块id")
    private Long boardId;
    @ApiModelProperty("文章作者id")
    private Long userId;
    @ApiModelProperty("文章title")
    private String title;
    @ApiModelProperty("文章正文")
    private String content;
    @ApiModelProperty("文章访问量")
    private Integer visitCount;
    @ApiModelProperty("文章回复量")
    private Integer replyCount;
    @ApiModelProperty("文章点赞数")
    private Integer likeCount;
    @ApiModelProperty("文章状态")
    private Byte state;
    @ApiModelProperty("文章删除状态")
    private Byte deleteState;
    @ApiModelProperty("文章发布时间")
    private Date createTime;
    @ApiModelProperty("文章最新一次修改时间")
    private Date updateTime;
    @ApiModelProperty("是否为文章作者")
    private Boolean OWn;
    //关联对象
    private User user;
    private Board board;
}